package com.woniu.order.infra.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物流信息表
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lg_logistics")
public class Logistics implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 物流ID
     */
    @TableId(value = "logistics_id", type = IdType.AUTO)
    private Integer logisticsId;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 发货人姓名
     */
    private String consignerRealname;

    /**
     * 发货人联系电话
     */
    private String consignerTelphone;

    /**
     * 发货地址
     */
    private String consignerAddress;

    /**
     * 物流单号
     */
    private String expressNo;

    /**
     * 收货人姓名
     */
    private String consigneeRealname;

    /**
     * 联系电话 
     */
    private String consigneeTelphone;

    /**
     * 收货地址
     */
    private String consigneeAddress;

    /**
     * 物流发货运费
     */
    private BigDecimal logisticsFee;

    /**
     * 物流状态（WAITDELIVER 待发货 | IN_TRANSIT 运输中 | ARRIVED 已到货 | RECEIVED 已签收）
     */
    private String orderlogisticsStatus;

    /**
     * 发货时间
     */
    private Date deliveryTime;

    /**
     * 物流更新时间
     */
    private Date updateTime;

    /**
     * 到货时间
     */
    private Date arrivalTime;

    /**
     * 签收时间
     */
    private Date receivedTime;

    /**
     * 物流类型(商家发货BUSINESS_DELIVERY |用户退货 USER_RETURN)
     */
    private String logisticsType;


}
